<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>查询订单</title>
<link rel="stylesheet" href="${pageContext.request.contextPath }/admin/qf/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/admin/qf/css/chax.css" />
</head>
<script type="text/javascript" src="${pageContext.request.contextPath }/admin/qf/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/admin/qf/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/admin/qf/js/chaxStu.js"></script>
<body>
		<hr>
		<b>&nbsp;&nbsp;需求列表</b>
		<hr>
		<!--添加学生列表-->
		<div>
			<a href="${pageContext.request.contextPath }/admin/addRecruit.jsp"><button class="but"><font>添加需求</font></button></a>&nbsp;&nbsp;
			<div style="margin-top: -40px; margin-left: 100px">
			<form action="findRecruit" method="post" id="fsub">
				<input type="text" name="yname" class="tex" placeholder="请输入搜索关键字" />
				<input type="hidden" id="pageNo" name="pageNo"/>
				<button class="but2"><font>搜索</font></button>&nbsp;&nbsp;
			</form>
			</div>
		</div>
		<hr />

		<table class="table table-hover">
			<thead>
				<tr>
					<th>编号</th>
					<th>职位名称</th>
					<th>职位要求</th>
					<th>职位数量</th>
					<th>开始时间</th>
					<th>岗位职责</th>
				</tr>
			</thead>
			<tbody>
			
			<s:iterator value="#request.rec.list">
				<tr>
					<td>${recruitId}</td>
					<td>${posit.positName}</td>
					<td>${recruitMent}</td>
					<td>${recruitNum}</td>
					<td>${recruitBtime}</td>
					<td>${recruitYq}</td>
					<td>
						<div class="btn-group">
							<a href="findupdateRecruit?recruitId=${recruitId}"><button type="button" class="btn btn-default" style="border: 1px solid #31B0D5; color:#31B0D5 ;">修改</button></a>
							<a href="deleteRecruit?recruitId=${recruitId}"><button type="button" class="btn btn-default" style="border: 1px solid #D43F3A; color:#D43F3A ;">删除</button></a>
						</div>
					</td>
				</tr>
				</s:iterator>
				<s:set name="page" value="#request.page"></s:set>
			<tr>
				<td colspan="7">
				当前是第${pageNo}</span>页，共${sumPage}页
				</td>
			</tr>
			</tbody>
		</table>
		<div class="btn-group" style="margin-left: 350px">
		<a href="javascript:pageModel(${pm.index})"><button type="button" id="start" class="btn btn-default">首页</button></a>
		<a href="javascript:pageModel(${pm.prev})"><button type="button" id="pageS" class="btn btn-default">上一页</button></a>
		<a href="javascript:pageModel(${pm.next})"><button type="button" id="pageX" class="btn btn-default">下一页</button></a>
		<a href="javascript:pageModel(${pm.sumPage})"><button type="button" id="end" class="btn btn-default">尾页</button></a>
	</div>
	<script type="text/javascript">
		function pageModel(pageNo){
			$("#pageNo").val(pageNo);
			$("#fsub").submit();
		}
</script>
	</body>
</html>